package com.monkeybrother.spring.async;

import org.springframework.stereotype.Component;

import java.util.concurrent.Callable;

@Component
public class AsyncCallable implements Callable<String> {

    @Override
    public String call() throws Exception {
        // 模拟耗时操作
        Thread.sleep(3000);
        return "返回结果";
    }
}
